package fgoScript.exception;

import commons.util.GameUtil;
import fgoScript.constant.GameConstant;
import fgoScript.constant.PointInfo;
import org.apache.commons.lang3.StringUtils;

public class AppNeedStopException extends Exception {
	private static final long serialVersionUID = 3087643542341510436L;
	private static long lastThrowMillions= System.currentTimeMillis();
	@Override
	public String getMessage() {
		PointInfo.pointInfo = null;
		if(System.currentTimeMillis()-lastThrowMillions > 5 * 1000){
			GameUtil.fullScreen2file(GameConstant.IMG_EXTEND, GameUtil.getPicLogsPath() + "\\ExceptionPic\\" + "AppNeedStopException" + System.currentTimeMillis() + ".");
		}
		lastThrowMillions=System.currentTimeMillis();
		return "程序终止运行!";
	}
	
}
